package com.yf.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/*********************************************************
 ** 配置类controller
 ** <br><br>
 ** @author: yangfeng
 ** @date: 2024/3/24 17:49
 ** @version: 1.0.0
 *********************************************************/
@RestController
@RequestMapping("/config")
@RefreshScope
public class ConfigClientController {
    @Value("${config.common}")
    private String configCommon;
    @GetMapping("/getConfigCommon")
    public String getConfigCommon(){
        return configCommon;
    }


}
